#include "UIEvent.h"

class UIEventPrivate {
    public:
        bool accepted;
};

UIEvent::UIEvent()
    : d(new UIEventPrivate)
{
    d->accepted = false;
}

UIEvent::~UIEvent() {
    delete d;
}

void UIEvent::accept (void) {
    d->accepted = true;
}

void UIEvent::ignore (void) {
    d->accepted = false;
}

bool UIEvent::isAccepted (void) const {
    return(d->accepted);
}

void UIEvent::setAccepted (bool accepted) {
    d->accepted = accepted;
}

